//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08

//We only need to store the data in memory if it is sb or sw
`define SW 6'b101011
`define SB 6'b101000

module memWrite_ctr(opcodes, control);
	input [5:0]opcodes;
	output control;
	reg control;

always @(opcodes) begin
	if(opcodes==`SW || opcodes==`SB) begin
	  control=1;
	end else begin
	  control=0;
	end
end

endmodule